// encoder.h
// Copyright (C) 2008 Sam Bateman
// samuel.bateman@gmail.com
//
// This file is part of DVD On Fire.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

//! @file encoder.h
//! @author Sam Bateman
//! @brief Header file for the Encoder class.

#ifndef _YBJ_DOF_ENCODER_H
#define _YBJ_DOF_ENCODER_H

#include "step.h"

namespace dvdonfire
{
    namespace daemon
    {
        // class Encoder {{{
        //! @brief Step 2: Encode.
        //!
        //! Second step of the conversion process.  This involves taking an
        //! .mpg file and using ffmpeg to convert it to DVD format, i.e.
        //! 720x480 resolution, MPEG2 video and AC3 audio, and 4:3 aspect
        //! ratio.
        class Encoder : public Step
        {
        public:
            // constructor and destructor
            Encoder();
           ~Encoder();

            // step functions
            void cleanup();
            void doStep();
            void start();
            void stop();

        private:
            // implementation
            struct Impl;
            Impl *impl;
        };
        // }}}
    }
}

#endif  // _YBJ_DOF_DECODER_H
